package com.ruoyi.news.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import com.entity.concat.ITimeEntity;
import com.ruoyi.common.core.domain.Entity;

/**
 * 新闻对象 mg_news
 * 
 * @author 王强
 * @date 2024-01-21
 */
public class News extends Entity implements ITimeEntity<Long>
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 封面图片 */
    @Excel(name = "封面图片")
    private String cover;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String newsTitle;

    /** 新闻说明 */
    @Excel(name = "新闻说明")
    private String newsDiscription;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String content;

    /** 0, 不启用; 1,启用 */
    @Excel(name = "0, 不启用; 1,启用")
    private Integer enabled;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setNewsTitle(String newsTitle) 
    {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle() 
    {
        return newsTitle;
    }
    public void setNewsDiscription(String newsDiscription) 
    {
        this.newsDiscription = newsDiscription;
    }

    public String getNewsDiscription() 
    {
        return newsDiscription;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setEnabled(Integer enabled) 
    {
        this.enabled = enabled;
    }

    public Integer getEnabled() 
    {
        return enabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cover", getCover())
            .append("newsTitle", getNewsTitle())
            .append("newsDiscription", getNewsDiscription())
            .append("content", getContent())
            .append("enabled", getEnabled())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
